﻿<UserControl x:Class="HeadLinx.AD.Explorer.PersonCardView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Width="Auto"
             Height="Auto">
    <Border Name="card"
            Padding="8.0"
            Width="375"
            CornerRadius="8.0"
            Background="DarkSlateGray">
        <Border.ContextMenu>
            <ContextMenu Name="contextMenu"
                         Opened="contextMenu_Opened"
                         Closed="contextMenu_Closed">
                <MenuItem Name="menuCopyClipboard"
                          Header="Copy [user name] to Clipboard">
                    <MenuItem Name="menuClipAll"
                              Header="All Information"
                              Click="menuClipAll_Click"></MenuItem>
                    <MenuItem Name="menuClipContact"
                              Header="Contact Information"
                              Click="menuClipContact_Click"></MenuItem>
                </MenuItem>
                <Separator></Separator>
                <MenuItem Name="menuShowSubtree"
                          Header="Show as Root"
                          Click="menuShowSubtree_Click"></MenuItem>
                <MenuItem Name="menuShowDirectReports"
                          Header="Show Direct Reports"
                          Click="menuShowDirectReports_Click"></MenuItem>
                <MenuItem Name="menuShowPeers"
                          Header="Show Peers"
                          Click="menuShowPeers_Click"></MenuItem>
                <MenuItem Name="menuShowSuperiors"
                          Header="Show Superiors"
                          Click="menuShowSuperiors_Click"></MenuItem>
                <Separator></Separator>
                <MenuItem Name="menuBrowseHomePage"
                          Header="Browse Home Page"
                          Click="menuBrowseHomePage_Click"></MenuItem>
            </ContextMenu>
        </Border.ContextMenu>

        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Name="bannerRow"
                               Height="Auto"></RowDefinition>
                <RowDefinition Name="detailsRow"
                               Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
            
            <StackPanel Name="bannerPanel"
                        Grid.Row="0"
                        Orientation="Vertical"
                        Margin="0,0,0,8">
                
                <TextBlock Name="userDisplayName"
                           Foreground="White"
                           FontSize="20.0">[User Display Name]></TextBlock>
                
            </StackPanel>
            
            <Grid Name="detailsGrid"
                  Grid.Row="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Name="photoColumn"
                                      Width="100"></ColumnDefinition>
                    <ColumnDefinition Name="detailsColumn"
                                      Width="*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Image Name="thumbnailPhoto"
                       Grid.Column="0"
                       Margin="0,0,8,0"
                       Stretch="Uniform"
                       VerticalAlignment="Top">
                </Image>
                <TextBlock Name="userDetails"
                           Grid.Column="1"
                           Foreground="White"
                           FontSize="12.0"
                           TextWrapping="Wrap">
                </TextBlock>
            </Grid>
        </Grid>
        
    </Border>
</UserControl>
